home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / mint / l_0799 / 798 < prev    next >
Encoding:
Internet Message Format  |  1994-08-27  |  1.1 KB

  1. Date: Thu, 13 Jan 94 04:09:18 +0100
  2. From: entropy@terminator.rs.itd.umich.edu
  3. Subject: [MINTOS] compiler switch (was: Re: MiNT goes UNiX, ...)
  4.  
  5.  
  6. The __MINT__ flag is a misnomer that really should be __MINTLIB__.
  7.  
  8. Because of historical practice, I'd reccomend that this misnomer not
  9. be changed.
  10.  
  11. Since the whole point of the mint library is to provide a UNIX-like
  12. environment, the __MINT__ flag should be interpreted as "MiNT running
  13. on a UNIX-like system", e.g. you shouldn't mangle pathnames and so on.
  14.  
  15. If you want to make it possible for people to compile your code in
  16. such a way that it works on plain TOSFS, I'd reccommend the following:
  17.  
  18. #ifdef __atarist__
  19. #ifndef __MINT__
  20. #define TOSFS
  21. #endif
  22. #endif
  23.  
  24. Then you can use the TOSFS flag as an indicator as to whether you
  25. should mangle filenames that tosfs can't deal with.  Anyone who wants
  26. to compile this code for use with MiNT and plain TOS filesystem can
  27. then just add -DTOSFS in the makefile.
  28.  
  29. --
  30. entropy -- it's not just a good idea, it's the second law.
  31. Personal mail:      entropy@gnu.ai.mit.edu
  32. MiNT library mail:  entropy@terminator.rs.itd.umich.edu
  33.  
  34.  
  35.